define(function(require){
	console.log("art js");
	
	var $ = require('jquery');
	require('artTemplate/artTemplate/2.0.1/template.js');
	
	template.openTag = '<$';
	template.closeTag = '$>';
	
	var source = '<ul><$ for (var i = 0; i < list.length; i ++) { $><li>\u7d22\u5f15 <$= i + 1 $> \uff1a<$= list[i] $></li><$ } $></ul>';

	var render = template.compile(source);
	var html = render({
	    list: ['摄影', '电影', '民谣', '旅行', '吉他']
	});

	console.log(html);
	$("#code").empty().append(html);

});